<div class="row">
    <div class="col-md-12">    
        <div id="bgBody">

</div>
        <div class="block">
            <div class="block-title">
                <h2><strong>Listado de Recibos </strong> </h2>
            </div>

            <div class="table-responsive">
                <table id="example-datatable" class="table table-vcenter table-condensed table-bordered">
                    <thead>
                        <tr>
                            <th class="text-center">Nro</th>                            
                            <th>Nombre</th>
                            <th>Apellido Paterno</th>
                            <th>Apellido Materno</th>
                            <th>Perfil</th>
                            <th>Usuario</th>
                            <th>Accion</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $i=1;?>
                        <?php foreach($users as $us):?>
                        <tr>
                            <td class="text-center"><?php echo $i;$i++;?></td>                            
                            <td><?php echo $us['User']['nombres'];?></td>
                            <td><?php echo $us['User']['ap_paterno'];?></td>
                            <td><?php echo $us['User']['ap_materno'];?></td>
                            <td><?php echo $us['User']['role'];?></td>
                            <td><?php echo $us['User']['username'];?></td>
                            <td class="text-center">
                                <div class="btn-group">
                                    <a href="<?php echo $this->Html->url(array('controller'=>'Users','action' => 'usuario', $us['User']['id']));?>"data-toggle="tooltip" title="Editar Usuario">
                                        <?php echo $this->Html->image('iconos/edit.png'); ?>
                                    </a>                                  
                                    <?php echo $this->Html->link($this->Html->image('iconos/del.png'), array('controller'=>'Users','action'=>'delete', $us['User']['id']), array('escape'=>false, 'confirm'=>'Esta seguro de Eliminar','title'=>'Eliminar')); ?>
                                </div>
                            </td>
                        </tr>
                        <?php endforeach;?>
                    </tbody>
                </table>
            </div>

        </div>
    </div>    
</div>